﻿@{
    ViewBag.Title = ("Common:NewsCenter".GetResourceText());
    Layout = "~/Views/Shared/Class/_Layout.cshtml";
}

@foreach (tb_subclass newsSubclass in ViewBag.NewsClasses)
{
    <div class="subNewsList">
        <div class="title">
            <span class="left">@newsSubclass.GetName()</span>
            <a href="/news/list/@newsSubclass.Id">@("Common:More".GetResourceText())</a>
            <span class="clear"></span>
        </div>
        <ul>
            @foreach (tb_article article in ViewHelper.GetArticels(ViewBag.Articles, @newsSubclass.Id))
            {
                <li><a href="/article/@article.Id">@article.GetTitle()</a></li>
            }
        </ul>
    </div>
}
